//
//  SocketManager.h
//  GCDSocketServer
//
//  Created by chenf on 2022/5/22.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class GCDAsyncSocket;

@interface SocketManager : NSObject

+ (SocketManager *)sharedSocketManager;

-(NSArray *)currentExistSocketes;
-(void)addClicent:(GCDAsyncSocket * __nonnull)socket;
-(void)removeClicent:(GCDAsyncSocket * __nonnull)socket key:(NSString* __nullable)key;
-(void)clearAll;


-(NSDictionary *)currentExistRegisterSocketes;
-(void)addClicent:(GCDAsyncSocket * __nonnull)socket userId:(NSString * __nonnull)userId;

@end

NS_ASSUME_NONNULL_END
